﻿@{
    ViewData["Title"] = "Menu";
    Layout = "~/Views/Shared/Temp.cshtml";
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Demo</title>
</head>
<body>
    <div class="layui-inline">
        <label class="layui-form-label" style="width: 100px;">父级id:</label>
        <div class="layui-input-block">
            <select id="dynamicSelect" lay-filter="AllocateType">
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">菜单名称:</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="menu_name" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">菜单Url:</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="menu_url" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">授权:</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="perms" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">类型</label>
        <div class="layui-input-block" id="type">
            <input type="radio" name="type" value="0" title="目录" checked>目录
            <input type="radio" name="type" value="1" title="菜单">菜单
        </div>
    </div>




    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">菜单图标:</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="menu_icon" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">排序:</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="order_num" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">功能按钮</label>
        <div class="layui-input-block" id="type">
            <input type="radio" name="type" value="2" title="按钮">选中
        </div>
        <div id="AnNiu" class="layui-input-inline" style="display:none;">
            <div>
                <div class="layui-form-item">
                    <label class="layui-form-item" style="width: 100px;">功能名称:</label>
                    <div class="layui-input-inline layui-input-wrap">
                        <input type="text" id="permission_name" name="permission_name" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-item" style="width: 100px;">功能路径:</label>
                    <div class="layui-input-inline layui-input-wrap">
                        <input type="text" id="is_perms" name="is_perms" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
                    </div>
                    <div id="Jia" class="layui-form-item">
                        <input type="button" class="layui-btn" value="+" onclick="New()">
                    </div>
                    <div id="NemBox"></div>
                </div>
            </div>
        </div>
    </div>


    <div class="layui-form-item">
        <input type="button" value="添加" class="layui-btn" onclick="Enroll()" />
        <input type="button" value="取消" class="layui-btn" />
    </div>

    <script src="~/js/user/menu.js"></script>
</body>
</html>